*************************************************
 NEC ESMPRO Manager Update
*************************************************

[Introduction]

This update is for NEC ESMPRO Manager.

Target versions:
    NEC ESMPRO Manager Ver6.60 - Ver6.61


[NEC ESMPRO Manager version after applying the update]

The version does not change after applying the update.


[How to apply the update]

 1) Log onto the server as a user with administrative privileges.

 2) Run the following update program.

   Select the following batch file in Windows Explorer,
   and run it by clicking the 'Run as administrator' option
   on the right click mouse button menu.

      Update.bat

    * To run the batch file from a command prompt,
      right-click the 'command prompt' option on the [Start] menu,
      and open the command prompt by clicking the 'Run as
      administrator' option on the menu shown.

 3) Finish update

   The effect of the update will become effective immediately.
   If you see the message "Restart the system to enable the update",
   restart the system.

[Pre-Installation Checks]

  Before installing this software, perform the following steps to ensure that the alert reception status is
  Check if it is working properly.

 1) Acknowledgment of receipt of alert notifications
    Send a test report from iLO or BMC and check if it appears in the alert viewer.
    Please note.
    If the test report you sent appears in the Alert Viewer, there is no problem.
    SKIP STEP 2) AND PROCEED TO 3).
    The test report you sent does not appear in the Alert Viewer, or you have a past alert
    If the notification appears in the Alert Viewer, follow the steps in 2).

 2) Recapture alert notifications
    Follow the steps below to re-import alert notifications into the Alert Viewer.

    2)-1 Stop the services in the following order.
          (1) ESMPRO/SM Web Container
          (2) ESMPRO/SM Event Manager
          (3) ESMPRO/SM Base AlertListener
          (4) ESMPRO/SM Common Component
          (5) ESM32BridgeService for AlertListener
          (6) ESM32BridgeService for NvAccessor

    2)-2 Delete all folders below.
          [ESMPRO/SM installation folder]\ESMWEB\wbserver\webapps\esmpro\WEB-INF\service\esmprodb

    2)-3 Edit the following files.
          [ESMPRO/SM installation folder]\ESMWEB\wbserver\webapps\esmpro\WEB-INF\service\alertreceiver\alertreceiver.properties
          delete the line that says "IS_TRANSFER_EXEC=true".

    2)-4 Start the services in the following order.
          (1) ESM32BridgeService for NvAccessor
          (2) ESM32BridgeService for AlertListener
          (3) ESMPRO/SM Common Component
          (4) ESMPRO/SM Base AlertListener
          (5) ESMPRO/SM Event Manager
          (6) ESMPRO/SM Web Container

 3) Install this software according to the "Installation Instructions".

[Installation Instructions]

  Follow the steps below to install this software.

 1) Log on

    Log on as a user (administrator) with administrator privileges.

 2) Confirmation of activation of related services

    If you run it immediately after the system boots, the update may fail.
       Start each ESMPRO/ServerManager service before running.
       Automatic (delayed start) services take a while to start.

    If the service fails to stop when running this software, you can manually use the
       Stop and try again.

 3) Update execution

    Select the following batch file in Explorer and display it by clicking the right button.
       Run "Run as administrator..." in the menu.
          update.bat

* If you want to run the batch file at the command prompt, use the command prompt
      Please start it with administrator privileges.

 4) End of module replacement

    In the batch file,
         1) Suspension of related services
         2) File Copy
         3) Launch of related services
       We will do.

    If you see the message "Press any key to continue..."
       The program is finished.
       The message "Please reboot your system for the update to take effect"
       If so, reboot the system. If not,
       No system reboot is required.

    * If you execute the batch file with Command Prompt, display it as follows.
          Exit.
            If successful: 'Update End'
            If not: Error code: < exit code >"

[How to check the result of applying the update]

 Verify that the following files are replaced.

 * According to the Windows operating system being used,
   check files under either of the following folders.

    \ESMWEB\esm32bridge\alertListener
      File name                               Date              Size
     -------------------------------------------------------------------------
      jsl.exe                                 2023/03/27 19:24  31,744

    \ESMWEB\wbserver\webapps\esmpro\WEB-INF\classes\com\nec\jp\dianascope\alert\receiver
      File name                               Date              Size
     -------------------------------------------------------------------------
      NvbaseAlertRestBridge.class             2023/03/29 13:08    4,490

    \ESMWEB\wbserver\webapps\esmpro\WEB-INF\classes\com\nec\jp\dianascope\rest\client\bridge
      File name                               Date              Size
     -------------------------------------------------------------------------
      RestBridge$ReturnCode.class             2023/03/29 13:08      448
      RestBridge.class                        2023/03/29 13:08    5,899

    \ESMWEB\wbserver\webapps\esmpro\WEB-INF\lib
      File name                               Date              Size
     -------------------------------------------------------------------------
      AlertListener.dll                       2023/03/30 18:18   36,864

    According to the result (success or failure),
    one of the following exit codes (%errorlevel%) is returned.

     Code | Description
    ------+---------------------------------------------
       0  | Successful completion.
       1  | Not the target version of this UPDATE.
       2  | An error occurred during stopping service.
    ------+---------------------------------------------

[Precautions]

  (1) The version and revision will not change when the Software is applied.

      The procedure for checking the version of ESMPRO/ServerManager is as follows.
      From the Start menu, select All Programs (Programs)-
      Click [ESMPRO] - [About] to use the ESMPRO Version Information Check Tool
      Launch it.
      Go to the "Manager" tab and check the CC location of the internal record information.

  (2) When the version is upgraded after applying this software (this modification is not supported)
      Up to Ver6.61), apply this software again after upgrading.
      Primitive.

[Notes]
 1) A version confirmation procedure of NEC ESMPRO Manager is as follows.
    Click [NEC ESMPRO] in [NEC ESMPRO Manager] under [all programs
    (program)] from [Start] menu.
    Please confirm the current version on the 'Manager' tab.

 2) The log of this update is %AppData%\SM_YYYYMMDD-HHMM.log.
    YYYYMMDD-HHMM is date and time of run the update.